package classwork320;

/**
 * @Author admin
 * @Date 2019/3/20 11:14
 */
public abstract class Student {

   final static int courseNO=3;
    String type;
    String name;
    float[] courses;
    String coursesGrade;


    public Student() {
    }


    public Student(String name) {
        this.name=name;
        courses=new float[courseNO];
    }

    public void setType(String type) {
        this.type = type;
    }

    public void setName(String name) {
        this.name = name;
    }

    public void setCourses(float[] courses) {
        this.courses = courses;
    }

    public void setCoursesGrade(String coursesGrade) {
        this.coursesGrade = coursesGrade;
    }

    public static int getCourseNO() {
        return courseNO;
    }

    public String getType() {
        return type;
    }

    public String getName() {
        return name;
    }

    public float[] getCourses() {
        return courses;
    }

    public String getCoursesGrade() {
        return coursesGrade;
    }

    public abstract void calculateGrade();



}

